package com.itheima.dao.impl;

import com.itheima.dao.UserDao;

import java.util.*;

public class UserDaoImpl implements UserDao {

    private String[] hobbies;
    private List<String> list;
    private Set<Integer> numbers;
    private Map<String,Integer> hashMap;
    private Properties properties;

    public UserDaoImpl() {
    }

    public UserDaoImpl(String[] hobbies, List<String> list, Set<Integer> numbers, Map<String, Integer> hashMap, Properties properties) {
        this.hobbies = hobbies;
        this.list = list;
        this.numbers = numbers;
        this.hashMap = hashMap;
        this.properties = properties;
    }

    @Override
    public void test() {
        System.out.println("dao");
    }


    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    public void setHashMap(Map hashMap) {
        this.hashMap = hashMap;
    }

    public void setNumbers(Set numbers) {
        this.numbers = numbers;
    }

    public void setList(List list) {
        this.list = list;
    }

    public void setHobbies(String[] hobbies) {
        this.hobbies = hobbies;
    }

    @Override
    public String toString() {
        return "UserDaoImpl{" +
                "hobbies=" + Arrays.toString(hobbies) +
                ", list=" + list +
                ", numbers=" + numbers +
                ", hashMap=" + hashMap +
                ", properties=" + properties +
                '}';
    }
}
